<template>
  <el-dialog
    title="话术示例 -  《移动云电脑》"
    :class="[$store.state.appPrefix + '-c-course-example-dialog', 'g-dialog']"
    width="50%"
    :show-close="!isLoading"
    :close-on-click-modal="false"
    :visible.sync="exampleVisible"
    :loading="isLoading">
    <div class="content">
      <div v-for="(it, k) in exampleData" :key="k" class="content-it">
        <div class="con-title">{{it.title}}</div>
        <div class="con-txt">{{it.content}}</div>
      </div>
    </div>
    <!-- exampleVisible -->
    <span slot="footer" class="dialog-footer"></span>
  </el-dialog>
</template>

<script>
import { exampleData } from './consts'

export default {
  props: {
    exampleVisible: {
      type: Boolean,
      required: true
    }
  },
  data() {
    return {
      exampleData,
      isLoading: false
    }
  },
  watch: {
    exampleVisible(val) {
      this.$emit('update:exampleVisible', val)
    }
  },
  methods: {}
}
</script>
